<form method="post" action="<? echo $this -> baseUrl ?>/<?= $this->contextPath ?>/<? echo $this -> action ?>">
	<table cellpadding="4" cellspacing="0" border="0" width="100%">
		<tr>
			<td width="40%" align="right">
				<label for="name">Category name:</label>
			</td>
			<td width="60%" align="left">
				<input type="text" id="name" name="name" value="<? echo $this -> category -> cat_name ?>">
			</td>
		</tr>
		<tr>
			<td width="40%" align="right">
				<label for="description">Description:</label>
			</td>
			<td width="60%" align="left">
				<input type="text" id="description" name="description" value="<? echo $this -> category -> cat_description ?>">
			</td>
		</tr>
		<tr>
			<td width="40%" align="right">
				<label for="price">Section:</label>
			</td>
			<td width="60%" align="left">
				<select name="section">
					<? foreach ($this->sections as $section): ?>
					<option value="<?= $section->sec_id ?>" <?= (($section->sec_id == $this->category->sec_id) ? "selected" : "") ?>><?= $section->sec_name ?></option>
					<? endforeach; ?>
				</select>
			</td>
		</tr>
		<tr>
			<td width="100%" colspan="2" align="center">
				<input type="hidden" name="id" value="<? echo $this->category->cat_id ?>" />
				<input type="button" name="id" value="Cancel" onClick="javascript:eway.redirect('<? echo $this -> baseUrl ?>/<?= $this->contextPath ?>');" />
				<input type="submit" name="" value="<? echo $this->buttonText ?>" />
			</td>
		</tr>
	</table>
</form>
